import local from './local'
import Cookies from 'js-cookie'

const viewName = 'op'

export default {
  data() {
    return {
      tableHeight: 500
    }
  },
  created() {
    this.tableHeight = Cookies.get('table-height') || 500
    if (!this.$i18n.getLocaleMessage('zh')[viewName]) {
      this.$i18n.mergeLocaleMessage('en', local.en)
      this.$i18n.mergeLocaleMessage('zh', local.zh)
      this.$i18n.mergeLocaleMessage('th', local.th)
    }
  },
  activated() {
    this.tableHeight = Cookies.get('table-height') || 500
  }
}
